package oop6.pet1;

/**
 * @author oldliu
 * @since 1.0
 */
public class Dog {
    private String name;
    private int age;
    private String sex;
    private String strain;

    //抓老鼠
    public void catchMouse(String name){
        System.out.println(this.name+"抓住了"+name);
    }
    public void show(){
        System.out.println("这只狗叫"+name);
        System.out.println("今年"+age+"岁了");
        System.out.println("性别是"+sex);
        System.out.println("品种是"+strain);
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getStrain() {
        return strain;
    }

    public void setStrain(String strain) {
        this.strain = strain;
    }
}
